package com.gof.example.algorithm;

/**
 * Created with IntelliJ IDEA.
 * Created by zhiyuan on 2018/5/13 15:48.
 * haiming.fei@tongdun.cn
 */
public class App {
    public static void main(String[] args) {
        AirplaneBehaviour airPlane = new Helicopter("直升机");
//        AirplaneBehaviour airPlane = new Harrier("鹞式战斗机");
//        AirplaneBehaviour airPlane = new Fighter("歼击机");
        Airport airport = new Airport();
        airport.setAirplaneBehaviour(airPlane);
        airport.behaviour();
    }
}
